package cn.getech.data.development.model.dto;

import cn.getech.data.development.entity.BdpRealTaskAlarmObject;
import cn.getech.data.development.entity.BdpRealTaskAlarmReceived;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.List;

@Data
@ApiModel
public class RealTaskAlarmSaveDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("记录id")
    private Integer id;

    @ApiModelProperty("告警名称")
    private String name;

    @ApiModelProperty("项目id")
    private Integer procId;

    @ApiModelProperty("任务类型 1：FLINK API  2：FLINK SQL  3：FLINK SQL DAG  4：实时采集")
    private Integer taskType;

    @ApiModelProperty("告警对象集合")
    private List<Integer> alarmObjects;

    @ApiModelProperty("触发条件 0：失败")
    private Integer triggerCondition;

    @ApiModelProperty("免打扰时间，开始")
    private LocalTime noDisturbingStartTime;

    @ApiModelProperty("免打扰时间，结束")
    private LocalTime noDisturbingEntTime;

    @ApiModelProperty("告警方式，1：邮件，2：T信，3：电话，4：短信")
    private List<Integer> alarmModes;

    @ApiModelProperty("接收人类型，1：部门，2：项目，3：本人")
    private Integer receivedType;

    @ApiModelProperty("告警状态，1：启用，0：禁用")
    private Integer state;

    @ApiModelProperty("接收人集合")
    List<BdpRealTaskAlarmReceived> receivedList;
}
